package org.theSeed.contract.impl;

import org.springframework.stereotype.Component;
import org.springframework.web.filter.GenericFilterBean;
import org.theSeed.filter.AuthFilter;
import org.theSeed.singleSecurity.contract.AuthFilterHandler;


/**
 * 认证过滤器
 */
@Component
public class AuthFilterHandlerImpl implements AuthFilterHandler {
    @Override
    public GenericFilterBean getAuthFilter() {
        try {
            return new AuthFilter();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
